<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <meta charset="UTF-8" id="_csrf_parameter_name" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
    <meta id="_csrf_header_name" th:name="${_csrf.headerName}" th:value="${_csrf.token}"/>
    <script type="text/javascript" th:src="@{/resources/commons/commonUtil.js}"></script>
    <script type="text/javascript" th:src="@{/resources/jquery-easyui-1.5.3/jquery.min.js}"></script>
    <script type="text/javascript" th:src="@{/resources/bootstrap-3.3.7/js/bootstrap.js}"></script>
    <script type="text/javascript" th:src="@{/resources/bootstrap-3.3.7/plugins/bootstrap-table/js/bootstrap-table.min.js}"></script>
    <script type="text/javascript" th:src="@{/resources/bootstrap-3.3.7/plugins/bootstrap-table/js/bootstrap-table-zh-CN.js}"></script>
    <script type="text/javascript" th:src="@{/resources/jquery/plugins/jquery-cookie-1.4.1/jquery.cookie.js}"></script>
    <link rel="stylesheet" type="text/css" th:href="@{/resources/bootstrap-3.3.7/plugins/bootstrap-table/css/bootstrap-table.min.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/resources/bootstrap-3.3.7/css/bootstrap.css}" />
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/
        var root =/*[[@{/api}]]*/0;
        var header ="X-CSRF-TOKEN";
        var token = $("meta[name='X-CSRF-TOKEN']").attr("value");

        $.ajaxSetup({

            beforeSend: function (xhr) {
                debugger;
                if (header && token) {
                    xhr.setRequestHeader(header, token);
                }
            }
        });
        /*]]>*/
    </script>
</html>